| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

BufferViewWrapper.h
1 // BufferViewWrapper.h
3 //
5
6 namespace nkAstraeus::nkMemoryWrap
7 {
14 template <typename T>
15 class BufferViewWrapper final
16 {
17 public :
18
19 // Environment update
27 static void updateEnvironment (nkScripts::Environment* env, nkMemory::StringView typeName, nkMemory::StringView typeNameUserObject = "") ;
28
29 // Callbacks
30 // Destructor
36 static void destructor (void* toDestroy) ;
37
38 // Conversion
49 static nkScripts::OutputValue view (const nkScripts::DataStack& stack) ;
60 static nkScripts::OutputValue subView (const nkScripts::DataStack& stack) ;
61
62 // Getters
73 static nkScripts::OutputValue getData (const nkScripts::DataStack& stack) ;
84 static nkScripts::OutputValue getSize (const nkScripts::DataStack& stack) ;
85 } ;
86 }
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkMemoryWrap::BufferViewWrapper::view
static nkScripts::OutputValue view(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkAstraeus::nkMemoryWrap::BufferViewWrapper::destructor
static void destructor(void *toDestroy)
nkAstraeus::nkMemoryWrap::BufferViewWrapper
Wraps a nkMemory::BufferView<T> and offers functions for use in scripting.
Definition: BufferViewWrapper.h:16
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::nkMemoryWrap::BufferViewWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env, nkMemory::StringView typeName, nkMemory::StringView typeNameUserObject="")
nkAstraeus::nkMemoryWrap
Encompasses the wrapping of nkMemory for scripting.
Definition: Constants.h:7
nkAstraeus::nkMemoryWrap::BufferViewWrapper::subView
static nkScripts::OutputValue subView(const nkScripts::DataStack &stack)
nkAstraeus::nkMemoryWrap::BufferViewWrapper::getSize
static nkScripts::OutputValue getSize(const nkScripts::DataStack &stack)
nkAstraeus::nkMemoryWrap::BufferViewWrapper::getData
static nkScripts::OutputValue getData(const nkScripts::DataStack &stack)